package cn.itsource.service.impl;

import cn.itsource.mapper.LogisticMapper;
import cn.itsource.pojo.Logistic;
import cn.itsource.pojo.Order;
import cn.itsource.service.ILogisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogisticServiceImpl implements ILogisticService {
    @Autowired
    private LogisticMapper logisticMapper;

    @Override
    public void update(Logistic logistic) {
        logisticMapper.update(logistic);
    }

    @Override
    public Logistic queryByOrderId(Integer oid) {
        return logisticMapper.loadByOrderId(oid);
    }

    @Override
    public Logistic queryById(Integer id) {
        return logisticMapper.loadById(id);
    }

    @Override
    public void add(Logistic logistic) {
        logisticMapper.add(logistic);
    }
}
